package ua.kpi.ipsa.expert.api.algorithm;

import com.sleepycat.je.Environment;

import ua.kpi.ipsa.expert.api.db.CodeTuple;
import ua.kpi.ipsa.expert.api.db.DAO;
import ua.kpi.ipsa.expert.api.db.DataAccessException;

/**
 * Basic interface for all code presentations.
 * 
 * @author alyaxey
 */
public interface CodePresentationStorage {

	public void init(DAO dao, Environment env) throws DataAccessException;

	public void close() throws DataAccessException;

	public void add(CodeTuple code) throws DataAccessException;

	public void removeAll() throws DataAccessException;
}
